package main
import(
	"fmt"
	"time"
)

func main(){
	now := time.Now()
	fmt.Println(now)
	fmt.Printf("now's type %T \n",now)
	fmt.Println(now.Year())
	fmt.Println(now.Hour())
	time.Sleep(3000 * time.Millisecond)
	var dateStr string = now.Format("2006/01/02 15:04:05")
	var dateStr1 string = now.Format("2006/01/02")
	var dateStr2 string = now.Format("15:04:05")
	fmt.Println(dateStr)
	fmt.Println(dateStr1)
	fmt.Println(dateStr2)
	fmt.Println(now.Unix())
	fmt.Println(int64(now.UnixNano()))
}